<?php
/**
 * Created by PhpStorm.
 * User: jc234839
 * Date: 20/04/14
 * Time: 11:05 AM
 */
#start user's session
session_start();

#store current page as previousPage for redirection after login
if (basename($_SERVER['PHP_SELF']) != "login.php") $_SESSION['previousPage'] = basename($_SERVER['REQUEST_URI']);

#core requires and includes
require 'dbconnect.php';
require 'user.php';
require 'product.php';
require 'order.php';
require 'inventory.php';
require 'secure.php';

$user = new User($db);
$product = new Product($db);
$order = new Order($db);
$inventory = new Inventory($db);
$secure = new Secure($user);

$message = array();
?>
